package com.qing.microservices.shirostudy.controller.error;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author guoqf
 * @date 2023/6/30 9:50
 */
@Controller
@RequestMapping("/error")
@Slf4j
public class ErrorController {

    @GetMapping("/401")
    public String error401() {
        log.info("turn to 401.html");
        return "error/401";
    }

    @GetMapping("/403")
    public String error403() {
        log.info("turn to 403.html");
        return "error/403";
    }

    @GetMapping("/404")
    public String error404() {
        log.info("turn to 404.html");
        return "error/404";
    }

    @GetMapping("/500")
    public String error500() {
        log.info("turn to 500.html");
        return "error/500";
    }
}
